package com.jiuwan.gamepass.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiuwan.gamepass.pojo.Pic;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface PicDao extends BaseMapper<Pic> {
    int deleteByPrimaryKey(String id);

    int addPic(Pic record);

    int insertSelective(Pic record);

    Pic selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Pic record);

    int updateByPrimaryKey(Pic record);

    int updateByPicturesId(String picturesId);


    //根据关联app的id  删除所有相关的图片
    int deleteByPicturesid (String appID);

    //根据关联app的id  查找到所有的图片并返回相应地址
    List<Pic> selectByPicturesid (String appID);
}